//
//  SelfAlertView.h
//  kongfangxiong
//
//  Created by 李小龙 on 2017/6/29.
//  Copyright © 2017年 lixiaolong. All rights reserved.
//

typedef NS_ENUM(NSUInteger, AlertClickType) {
    alertTypeSure,
    alertTypeCancel,
};

typedef void(^AlertBlock)(AlertClickType type);

#import <UIKit/UIKit.h>

@interface SelfAlertView : UIView

@property (nonatomic, weak) IBOutlet UIView *view;
@property (weak, nonatomic) IBOutlet UIView *shadowView;

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UIButton *buttonSure;
@property (weak, nonatomic) IBOutlet UIButton *buttonCancel;

/**
 AlertClickType
 */
@property (nonatomic, copy) AlertBlock block;

- (void)show;
- (void)hidden:(UIGestureRecognizer *)tap;

@end
